/**
 * 表格加载状态
 */
export function useLoading() {
    const loadingRef = ref<boolean>(false)

    const loading = computed(() => unref(loadingRef))

    function setLoading(loading: boolean) {
        loadingRef.value = loading
    }

    return { loading, setLoading }
}
